<template>
  <div v-if="$model">
    <kv >
      <template #k>
        <div class="k" style="display: flex;   justify-content: start;">
        registryHost, 协议
        <el-switch v-model="$model.isHttps" /></div>
      </template>
      <el-input v-model="$model.host" >
        <template #prefix>{{$model.isHttps ? "https://" : "http://"}}        </template>
      </el-input>
    </kv>

    <kv label="registry用户名">
      <el-input v-model="$model.userName" />
    </kv>
    <kv label="registry密码">
      <el-input v-model="$model.password" />
    </kv>
    <kv label="保留历史个数">
      <el-input v-model="$model.keepMaxCount"/>
      <el-button>清理多余镜像版本</el-button>
    </kv>
  </div>
</template>

<script setup>
/**
 * Created by CodeGenerator  at 2024-09-03 23:25:55
 */

defineOptions({
  name: "ref-reg-config",
  inheritAttrs: true,
});

const $emit = defineEmits(["update:modelValue", "proc", "change"])



const $props = defineProps({title: {type: String, default: ""}})
const $model = defineModel({type: Object});
const list = ref();


</script>

<style scoped lang="scss">
</style>